package com.bRoom.service;

import com.bRoom.common.ServerResponse;
import com.bRoom.pojo.User;


public interface IUserService {

    ServerResponse<User> login(String username, String password);
    ServerResponse<User> register(User user);
    ServerResponse<User> updateMessage(User user,Integer userId);

    ServerResponse findQuestion(String userName);

    ServerResponse findAnswer(String userName,String question,String answer);

    ServerResponse forgetPasswordResert(String userName,String passwordNew,String forgetToken);

    ServerResponse loginResertPassword(String passWordOld,String passWordNew,Integer userId);
}
